package com.lottery.material.enumeration.common;

import com.lottery.material.enumeration.base.BaseEnum;
import lombok.Getter;

/**
 * Description：通用枚举类
 * Created by 朱正磊 on 2019-04-15 17:00
 */
@Getter
public enum CommonEnum implements BaseEnum {

    // 是否删除（1：否；2：是）
    IS_DELETE_FALSE("IS_DELETE", 1, "否"),
    IS_DELETE_TRUE("IS_DELETE", 2, "是"),

    // 状态 1：上架；2：下架
    STATE_ON("STATE", 1, "上架"),
    STATE_OFF("STATE", 2, "下架"),
    ;

    private String code;
    private Object value;
    private String description;

    CommonEnum(String code, Object value, String description) {
        this.code = code;
        this.value = value;
        this.description = description;
    }

    public static final String IS_DELETE = "IS_DELETE";
    public static final String STATE = "STATE";

}
